﻿@model BatsMVCPortal.Models.User

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>

        @Html.HiddenFor(model => model.UserID)

        <div class="editor-label">
            @Html.LabelFor(model => model.UserLogin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserLogin)
            @Html.ValidationMessageFor(model => model.UserLogin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserPassword)
            @Html.ValidationMessageFor(model => model.UserPassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserMail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserMail)
            @Html.ValidationMessageFor(model => model.UserMail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserRegisterDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserRegisterDate)
            @Html.ValidationMessageFor(model => model.UserRegisterDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileName)
            @Html.ValidationMessageFor(model => model.UserProfileName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileBirthday)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileBirthday)
            @Html.ValidationMessageFor(model => model.UserProfileBirthday)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileSex)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileSex)
            @Html.ValidationMessageFor(model => model.UserProfileSex)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileCountry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileCountry)
            @Html.ValidationMessageFor(model => model.UserProfileCountry)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileRegion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileRegion)
            @Html.ValidationMessageFor(model => model.UserProfileRegion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileCity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileCity)
            @Html.ValidationMessageFor(model => model.UserProfileCity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileAbout)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileAbout)
            @Html.ValidationMessageFor(model => model.UserProfileAbout)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfileAvatar)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfileAvatar)
            @Html.ValidationMessageFor(model => model.UserProfileAvatar)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserProfilePhoto)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserProfilePhoto)
            @Html.ValidationMessageFor(model => model.UserProfilePhoto)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
